# -*- coding: utf-8 -*-
import os,sys,logging

THIS_PATH=os.path.dirname(__file__).split('/')

LOG_FILENAME = "/".join(THIS_PATH[0:-2])+'/src/log.html'
logging.basicConfig(filename=LOG_FILENAME,datefmt="%Y-%m-%d %H:%M:%S",
    format="<b>%(asctime)-15s %(name)s ::%(levelname)s</b>-\
            <b style='color:red;'>%(filename)s::%(funcName)s-%(lineno)s-:</b>\n %(message)s",level=logging.DEBUG,filemode='w',)





# удалить если  pycube внесен в пути питона
ROOT_PATH="/var/core"
sys.path.append(ROOT_PATH)
os.environ['PYCUBE_ROOT']=ROOT_PATH
# удалить если  pycube внесен в пути питона

PROJECT_PATH="/".join(THIS_PATH[0:-2])
sys.path.append(PROJECT_PATH)


#os.environ['PYCUBE_SETTINGS_MODULE'] = 'privat.ponominalu_conf'
#logging.debug(sys.path)
from pycube.handlers import wsgi
application = wsgi.wsgiHandler()
 